CREATE TABLE [dbo].[TTTIPO_COPA]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[TI_COMP_PAGO] [dbo].[TD_VC_003] NOT NULL,
[DE_COMP_PAGO] [dbo].[TD_VC_100] NULL,
[ST_OTDA] [dbo].[TD_VC_001_SINO] NULL CONSTRAINT [DF__TTTIPO_CO__ST_OT__165A2CA1] DEFAULT ('N'),
[ST_NUME_GENE] [dbo].[TD_VC_001] NULL,
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TTTIPO_CO__CO_US__18427513] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TTTIPO_CO__FE_US__1936994C] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TTTIPO_CO__CO_US__1A2ABD85] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TTTIPO_CO__FE_US__1B1EE1BE] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TTTIPO_COPA] WITH NOCHECK ADD CONSTRAINT [CK__TTTIPO_CO__ST_OT__174E50DA] CHECK NOT FOR REPLICATION (([ST_OTDA]='N' OR [ST_OTDA]='S'))
GO
ALTER TABLE [dbo].[TTTIPO_COPA] ADD CONSTRAINT [PK__TTTIPO_C__06FE8F09270595B6] PRIMARY KEY CLUSTERED  ([CO_EMPR], [TI_COMP_PAGO]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TTTIPO_COPA] ADD CONSTRAINT [FK__TTTIPO_CO__CO_EM__75C33FDD] FOREIGN KEY ([CO_EMPR]) REFERENCES [dbo].[TMPARA_TESO] ([CO_EMPR])
GO
